/* 
 * File:   Timer.h
 * Author: BuzzW
 *
 * Created on April 1, 2012, 5:40 PM
 */

#ifndef TIMER_H
#define	TIMER_H

#include <windows.h>
//must link to libwinmm.a

class Timer
{
public: 
    Timer();
    
    //updates with system clock
    void Update();
    
    //updates with specified arg
    void Update(long elapsedTime);
  
    //resets elapsed time to 0
    void Reset();
    
    //gets elapsed time since last start or reset
    long GetElapsedTimeMillis();
 
private:
    long elapsedTime;
    long lastUpdate;
};


#endif	/* TIMER_H */
